{% extends '../public/admin.html' %}

{% block sidebar %}
<ul class="nav nav-sidebar">
    <li id="overview"><a href="/admin/interface-test/overview">任务管理</a></li>
    <li id="reports"><a href="/admin/interface-test/reports">测试报告</a></li>
</ul>
<ul class="nav nav-sidebar">
    <li><a href="/admin/setting/interface">接口配置</a></li>
    <li id="single"><a href="/admin/interface-test/single">单个接口测试</a></li>
    <li id="case"><a href="/admin/interface-test/case">测试用例管理</a></li>
</ul>
<ul class="nav nav-sidebar">
    <li id="encrypt"><a href="/admin/interface-test/encrypt">数据加密</a></li>
    <li id="decrypt"><a href="/admin/interface-test/decrypt">数据解密</a></li>
    <li><a href="/admin/setting/crypt">加解密算法配置</a></li>
</ul>

{% end %}

{% block section %}
    {% if op == 'reports' %}
        {% include 'includes/interface/reports.html' %}
    {% elif op == 'single' %}
        {% include 'includes/interface/single.html' %}
    {% elif op == 'case' %}
        {% include 'includes/interface/case.html' %}
    {% elif op == 'encrypt' %}
        {% include 'includes/interface/encrypt.html' %}
    {% elif op == 'decrypt' %}
        {% include 'includes/interface/decrypt.html' %}
    {% else %}
        {% include 'includes/interface/overview.html' %}
    {% end %}
    {% include '../public/tips.html' %}
{% end %}

{% block footer %}
<script src="{{ static_url('js/jquery.json.min.js') }}"></script>
<script src="{{ static_url('js/jquery.websocket.js') }}"></script>
<script src="{{ static_url('js/interface.js') }}"></script>
{% end %}